Updated sql scripts to be used with mariadb 10.