made all DB calls in main and homepage fragment run on new thread