model: database: Alphabet: Multiple bug fixes

- hasWord was broken. fix it.
- Set data base to auto commit mode. Otherwise all the changes were
  in journal and upon relaunch of application database was empty.
- Check for number of words in word table. Reload db from letter.properties
  if table is empty.