update database and validator