Tornado web server to update entry in table