change in db to postgresql