From https://developers.google.com/maps/articles/phpsqlsearch_v3?csw=1