Would it be possible to implement nostrscript on top of any database architecture or does it require nostrdb? I'm working on something that is going to gave a generic database of events, and if your writing algorithms using WASM it would be cool if I could reuse them