Updated ActiveRecord patch and simplified config for DB usernames.