Changes on database.js