Fixing ::db class to make the user resource name dynamic, such that multiple dbs can be created with the same username