converting production to postgres