CRM-12466 - tweak function names, debug and check query logs

----------------------------------------
* CRM-12466: Group listings don't load
  http://issues.civicrm.org/jira/browse/CRM-12466