Add caching and fix fetch-db for .travis.yml