Syntax refining
Refining of def add_group_to_db

Function "def add_group_to_db" was straightened out.
Additional one forgotten line of the syntax refine commit is included here