Adds sorting and updates the database to allow unassigned tasks