Fix for #6397 and potentially more: call run_command with "use_unsafe_shell = True" where needed.

Since commit ba0fec4, run_command() requires use_unsafe_shell=True for shell pipelines to work.
This fixes it for hopefully all modules, including mysql_db (issue #6397)