Initial commit of db generator, missing regex and tests