Having put the Notes programming thing behind me, looking into NOSQL had me thinking this looks familiar.
The notes platform at IBM was used to build out custom apps. I was a coop student employee and built them a lot of custom apps. its amazing how those custom tools can really help get stuff done.
You can also see why its not such a great email client (email is just another database no matter how much customization they do). I used Notes as an email client at another job and it has gotten better over the years, its still clunky.
lotus-script left a lot to be desired.