Allow custom database config on ActiveRecord::Base

This is necessary for many of the database-related rake tasks to work
correctly.
Merge pull request #128 from ragalie/db-create

db:create:all task doesn't create missing databases