Allow for setting of local_dir, temp dir to download
database. Ephemeral disk is too small.
Merge pull request #1 from photobox/master

Allow for setting of local_dir, temp dir to download
using postgres for specs
refactored DBConfig
refactored sql calls
removed unnecessary parentheses
added password support for pg
removed all postgres passwords fom command line arguments, should use pgpass or environment vars instead