Query mode doesn't need the database
Disable the "add note" button in database offline mode
Make development mode work when the database is offline
Don't render the offline page for XHR requests