Update sql
Add more changes to the sql