do not query database if num_api_keys or num_connections is zero
do not query database if num_channels is zero
do not query database if num_subscribed_channels is zero