task complete button updates database as well