Convert db to postgresql