Add generic database template.
Add dependencies for postgres setup to Gemfile.