changing databse to postgresql