Add configuration for MySQL and PostgreSQL tests on Travis CI.

Review by @cvogt