catch a bad input case in db::update