Fixed webface crash that occured if query was not passed to searchHandler.
Closes #1.
Fixed issues caused by delayed database connection closing in unusable apps detector.
Added more log messages.