fixed parsing errors on app.js and added more db interface