added db class and exception package
Merge pull request #5 from Juandesi/db-class-and-exception

added db class and exception package