Support mariadb and mysql inserts