in reply to array from query to db
Besides the DBI documentation, have a look at
DBI Recipes. What you need, and much more, is already there.
The ISS (or other satellites)
Results (250 votes). Check out past polls.