Your description is very confusing. Static content are the files that are not dynamically generated but simply served over the network, e.g. images, javascript, css. If you generate an HTML page using a view (template) and filling it with data from DB, that is a dynamic page generation.
Now, you want to use tornado + javascript to have a user side generated page. And you want access to DB from the javascript? If so, try the REST approach and expose the data as JSON. See this book chapter for details: http://web2py.com/books/default/chapter/29/10#HTML,-XML,-and-JSON But then the question is, what is the benefit of using tornado in the first place if at the end your requests go to web2py anyway?