put a db access into background thread.