Add fix up database function for termination crawling sometimes