modify DB write obj & Shape base class