Update database.js, fixed path error