Update sql scripts to work with MySQL