Saving word frequencies to MySQL