I9: add new sql and add permission
I9: remove whitespaces