add activity dao method to get max activity group position