update fixed database error