Working code for location based search. Tagging takes place once a db script is run