put 3 db accesses into background thread.