Switching primary db to postgres