add "db.close" in the page projectDetails.js