Add some dbCreate and dbUpgrade code, add a version table.