Add db preparation steps to Travis build

We need to make sure the database is ready before we run tests.