Fixed database error.