Added base DBObject, Quote and Invoice classes

I would like to have all DB objects extend the DBObject class, it will
make the gateways much more flexible.