add spec and code to initialize db with id pass all specs