Adds dotenv gem for postgres configuration

Set DB config in environment variables or using a `.env` file. A
sample `.env` is available in `dotenv.sample`.