Update TODO
Fix incorrect table name in MySQL updater
Minor database code tidying