Task table now reflects the state of the database.
Task table and database now actually cooperate with each other.