Creating a DB for each user

I’m making an app where I want it so that each time a user signs up it spins up a new db for that user, so that each user has data isolation (minus a master database that has all user’s ids, emails and their database ids stored in a table), how can I do that?

The Neon API provides create role and create database methods: