Fixing the db_task decorator, fixes #44