allowing for compressed description of database, port and collection in the "db" argumentt