ex17 heap and stack allocation opens/creates database