update db & check validate