better DataBaseObject

improved constructor, renamed methods, restructured script