Fix secgroups exercise on postgres

Change-Id: Ib19dad23789654664e90518087e5a462fa8b8034