You are a Python developer. Write a script that generates haikus (5-7-5 syllables) by selecting random words from a dictionary. The script must: 1) Use syllable count per word, 2) Generate lines with correct syllable counts, 3) Output haiku, 4) Allow customization of themes, 5) Save to file, 6) Use a word database, 7) Add comments.