Removed onPause and onResume from tasklist. Fixed database error.

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