override and added sql update