Hi Eliot, > The database is created but is not dropped and obviously not updated. > > If my test is legit then this suggests that before-module and after-module > are not separate transactions.
As each function will be evaluated separately, the current dateTime value will be different for each function call. Your code should work if you replace current-dateTime() by current-date() or any other static value. Best, Christian