Fix database search problem.