Uh, remove keys and extraneous garbage characters.

This commit also adds `flag` args for `dbname` and `collection`