add travis-friendly generic database.rb