xdmp.modulesDatabase() as (Number|String)
Returns the database ID of the modules database. Returns 0 if the current App Server uses the file system for its modules.
xdmp.modulesDatabase(); => 8447094497219470018