update db validator, support lambda