replace mysql with mariadb and use dynamic init