accdb: extract the multi-arg CLI search code
accdb: extract the multi-arg CLI search code

This is cleaner and will also be needed for a bugfix.

(originally commit dff5586863627b4af8a8677a37da83a2a90d6d0e in ~/code)

grawity/accdb