to unify sql parameter this requires now id instead of gid