added database.rb and changed tests but haven't done Rakefile to set up the database itself