wrap cronic task in db block