Add connection to postgresql database

The example config file has also been included as well as adding "config.yml"
in .gitignore to prevent config files from being added to the repository.