adding pgsql support, also check for schema

also single boolean return format.....