Changed SQL query
Changed format of previous commit