Merge pull request #221 from nikbyte/master

Fix some PgSQL schema issues
Postgres schema regenerated.