complete station_query funtion almost