Use db API instead of shell.
backends.mysql: Cleanup.