Changed Check class. Also changed run-tests.sh and .travis.yml to initialize db on run-tests.sh.