Working on #11 and #8 — PostgreSQL support and configuration file