database.js, main.js: fix calls to Notification()

(See also #2770.)
10 jobs for feature-c/notify_server_error in 5 minutes and 59 seconds (queued for 1 second)