main.c: only save tdoc if it's actually there
look up station name from query in database