Accessing database is broken in DetailedTask