crucial changes and updates in sql queries