add comments to database.js