fixed correct schema definitions; added model variables and invokation in app.js