dbtasks extracted from gohttp, cleanup in process