Sql queries for updating column values