#87 sql for location form input