fixing db tasks