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.