I'm building a product which requires creation of a new db dynamically for each project as a new team will create a new project depending on need. See image below. The backend is implemented with Node.js, Express.js, TypeScript and ArangoDB is the database used.
This is a product for enterprise server installation as well as SaaS.
How can I achieve the required architecture with mentioned technologies? Thanks for your ideas and examples, references. 