changes to retrieve users near the location

one query is not working. Will take a look into it tonight