added sql updates