improve: getting schema name and handling permissions
improved: better PostGIS render output file (schema and connection chain)