switch db form mysqy to pg