Added cascading when deleting groups from the DB
Fixed bugs