Don't open another database connection on every request
Support saving words
Fix word-updating logic