search algorithm ready and working

SQL algorithm drives the search of the location closer to a concrete
city saved in the DB registers when Ajax request interaction