Changes on database.js

- Added Database to window.prototype