The sed substitution at line 142 has no effect on database.yml.
Besides can't we just rid of the :reconnect option from database.yml since my mysql is it false by default and postgres does not support :reconnect.

Let me know. 

References:
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/MysqlAdapter.html
http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter.html