added cleanup thread in mysql indexer