MariaDB fix bugs in install function