Updated the ORM layer and the javascript app class in the demo.