Updated Sql to reflect proper value type