added method for checking for existing records in db.
Validation check for group added