Use AR::Base.connection instead of database_configuration