Update sql queries to match new mysql version