Removed dependency on database for task methods.