Update dbmanager.js