<%= @rails_env %>:
  adapter: <%= @database['adapter'] %>
  host: <%= @host %>
  database: <%= @database['database'] %>
  username: <%= @database['username'] %>
  password: <%= @database['password'] %>
  encoding: <%= @database.has_key?('encoding') ? @database['encoding'] : 'utf8' %>
  reconnect: true

<%= @rails_env %>:
  adapter: <%= @database['adapter'] %>
  host: <%= @host %>
  <%- if @database['port'] -%>
  port: <%= @database['port'] %>
  <%- end -%>
  database: <%= @database['database'] %>
  username: <%= @database['username'] %>
  password: <%= @database['password'] %>
  encoding: <%= @database.has_key?('encoding') ? @database['encoding'] : 'utf8' %>
  reconnect: true

Allow configuring the port if specificed.
Allow configuring the port if specificed.

Closes #21