Changed from sqlite3 to pg

Fixes #2
Merge pull request #6 from dleehr/support_postgres

Changed from sqlite3 to pg