modularized db interactions through new dbmanager.js file