Fixed MySQL problems and spelling in autocomplete.php and town.php