Fix database issues on Travis CI