added task repairs to a DB cleaning procedure