new db and validation