database.rb corrections