Changed SQL

Needed to change in order to be able to access