Error fixed with tasks db