Update db.js

Adding module.exports cause it's the correct way