Celery stats for active, pending and done tasks.

get_db_attrs modifies the task(dictionary) passed into it and returns nothing, i'd rather it took in a dictionary and gave back a new dictionary that has the added attributes