Move query-construction out of subs
Move the meat of the app into get_data_from_uri()