Fixes bug on escapeId mapping
Adds initial support for postgresql