Changes on database.js

- Added console.log after the script fully loaded