When multiple users are granted access to a database, the
MariaDB backup script failed to retrieve the grants for that
database, which caused the backup job to fail. This patchset
updates the script.
Change-Id: I9076b2e7363ae0ec216d4e822f385fa949df8f54