fixing .group for postgresql.
fixing .group for postgresql.