Merged Tornado server with Flask app, tornado votes can now write to the database