Let me know if this is wrong. I didn't understand the config key stuff at all. For example, in my app I just call `ActiveRecord::Base.establish_connection()` so `ActiveRecord::Base.configurations` is just an empty array. So this code pulls the config of the current connection and just uses that. Maybe I'm missing something, but it seems like that's the *only* thing that should happen. But I left it as the backup anyway.