Fix issue with custom tableName breaking queries
refs https://github.com/balderdashy/sails-postgresql/issues/86