Fixed memory leak in MockDBGenerator