changes db to postgresql