This commit adds full support for MariaDB as a job repository and removes the code that treats it as MySQL. Resolves #3891 Resolves #4217