Rename SQL query var to 'query'
to prevent conflicts with sql package