printRow and writeRow methods

enhanced DataBaseObject, added constructors to prototypes