Revert "Workaround for ActiveRecord database configuration bug."

This reverts commit 5198c11e2ae4b61dd161343e363afc5352931294.
Fix config file generation.