added sql changes