Getting current number of users for all apps
Not getting application second time anymore.
Fixed issue that prevented process from exiting.

Optimized database transaction.
Merge remote-tracking branch 'origin/dev'
Removed unused import.
Fixed typo.