modifications to Group and UserIdAndLiableCost classes to update IDs to Long and refactoring to match with db tables.