For instance, if I have a database, and the client code queries the database in a rather uniform fashion (through a wrapper macro), how would I go about putting the queries in a queue so that the queries are executed in order, the next running after the last has completed.

This is for an experimental quick-workaround for cl-mongo to see if it fixes issues with parallel requests.