Revert "Delete database.js"

This reverts commit e3bcc7b4baa68b825edf8b734de6e8dc02196c4b.