fix error in application_database.rb