refactor to explicit db connection
add .travis.yml