Patched to work with older Rails versions

The current_config method is not defined in earlier versions of ActiveRecord::Tasks::DatabaseTasks
See: https://github.com/rails/rails/blob/master/activerecord/lib/active_record/tasks/database_tasks.rb#L57