code: def type_in_db(self, tp, params):
          
          tw = TypeWrapper(tp, params)
          return self.version_db.is_versioned(tw)
docs: Determines if type is in the database
          :param tp:
          :return: