put 2 db accesses into background thread.