added postgres support and additional unit tests
Added external column name definition.