have simple database connection
use a foreach loop, quick and clean.
Merge pull request #1 from mogetutu/master

Code Review