rethinking database.rb