sql: refactor some sql statements to lowercase

Created by  Antoine Eiche  on June 20, 2019
2KLEQJTGFS4G4FSUMF6XMJ4N5OSVQ2S5A4GMA7YO7MS3BV5PMH3QC
Change contents