preparing to change db mysql to postgres