Updated the sparql queries in the local store handler as well.