db-meta: added -m -f -n options

The db-meta command may now limit its output to metadata only (-m) or formats only (-f), and filter the displayed metadata fields (one or more -n <field>).