Fix escaping for PostgreSQL schema & tables and allow column named after reference model

This may not be perfect but it closes 2 issues I opened related to quoting tables & schema names and reusing existing DB with potential naming conflicts.

Previous pull request had things incorrectly split into 2 commits.
Apparently this caused Travis to fail but works okay for my case. Is there an alternative?