Changes on database.js

- Added module.exports