Aha, I see why. Can you move this method below `generate_database` and make it private?