Made changes to Postgres code, and Unit tests to support new Postgres tables.
Merge pull request #24 from mustardgrain/dbchanges

Dbchanges