It is generally easier and safer to chain those two functions together into one serial flow -- this avoids having to use context to hold values while waiting for the rest of the information to be generated.
Try calling the exec cmd first -- wire that to a change node, and "Move" msg.payload to somewhere else, like msg.mac -- wire that to the db query, which should put its output into msg.payload. The output msg should now contain msg.mac and msg.payload in a single msg object.
The exception may be when two unrelated, async api calls need to be kicked off in parallel -- especially when one may run much longer than the other. But your two steps should run in milliseconds, not minutes. And since node-red (and nodejs) is single-threaded, trying to run two synch functions in parallel paths does not run any faster anyway.
--
Steve