updated app.js skeleton with proper datastores