Updated sql reading to use the new column names