Fix database setup for tests on Travis