Modified PostgreSQL groupId #148

Please review #148, and merge to master branch.