Moves database engine to postgres