Replace PG with mysql for production.
Fix failing tests.