fixed the database.rb file