How do i create a merchant account system like 37signals, that is:

Each user will get a completely independent URL. user.domain.com Each user reaches add some customers:

So when they allocate assets for accounts, do you consider its all-in-one database or they've created another database for every account?