Support for both mysql and postgres.