Changes relational db to postgres