AMENDED A FEW THING

made a few amendments - particularly to the connection string and some
of the sql queries.. the display of the results required you to iterate
over the result, not just puts it... you'll see what i have done.