infrastructure to build db from scratch