Fixed database problem.