changed taskQuery to store to db for #4