Added a Database Wrapper class
Tweaked Database Generator script to use the Database wrapper