Another quite big bunch of queries replaced by getBasicMemberData and a bit of changes to the function itself

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