finished the database util
modify the app.js