Fixed database issue.