fixes for mariadb