Added DBObject gateway

Also added Quote and Invoice gateways to Dao.