Adding MySql query strings and parsing location data