Simple REST API with MySQL and Tornado Web Framework