Fixed typos in db queries. Deleted the "classname" attribute in Tasks,
it was causing errors in the db.