Removing this here did actually break things as I thought it would, as the database name is required for running the command, and the cursor object has no other field for this. So in my current patch we set a temporary namespace, which gets replaced with the cursor result.