def METHOD_NAME(self, data):
    # Check data type
    assert type(data) == dict, f"[*** Type Error] data type is {type(data)}.\n It must be dict"
    timestamp = datetime.datetime.now(pytz.timezone('Asia/Seoul')).timestamp()
    data['lastupdate'] = timestamp
    problemId = data.get('problemId')
    if problemId in self.database.keys():
        del self.database[problemId]
    self.database.update({problemId: data})