fix db tasks