edited sql
new changes