Altering database to postgresql