Changes dialect.getType to pass table and column name, returns object

This is to prepare for postgresql needs
Adds Queue query helper, changes Sync to support the new getType syntax
Updates postgres dialect, adds support for enum types