Made database access in tasklist async.

Signed-off-by: Harman Sohanpal <harmansohanpal@gmail.com>