Added ERDB 3.2.2 indexes (based on ERDB 3.2 script)

Fixed table in index 'group_id'.
Changed index 'activityperiods_id' to 'activityperiodtimes_id', also using new table.