Moved word generation to MySQL database

Instead of being generated by the application, the word is now generated
from a MySQL database with PHP.