Usesless context is useless

Signed-off-by: emanuele <emanuele45@gmail.com>
Moving things around...

Signed-off-by: emanuele <emanuele45@gmail.com>
Some more queries moved to subs in a function that retrieves "groups"

Signed-off-by: emanuele <emanuele45@gmail.com>
Reorganized some parameters as an array

Signed-off-by: emanuele <emanuele45@gmail.com>