def METHOD_NAME(xbrlOpenDb, now):
    md = xbrlOpenDb.metadata
    table = xbrlOpenDb.getTable('xdc_user', 'user_pk',
                          ('user_id',
                           'name'
                           ),
                          ('user_id',),
                          ((md["submitterUserId"],
                            md["submitterUserName"]
                            ),),
                          checkIfExisting=True)
    for userId, _userNumber in table:
        xbrlOpenDb.userId = userId
        break
    table = xbrlOpenDb.getTable('submission_xdc', None,
                          ('submission_pk',
                           'submitter_fk',
                           'source_portal'
                           ),
                          ('submission_pk',),
                          ((xbrlOpenDb.submissionId,
                            xbrlOpenDb.userId,
                            md["sourcePortal"]
                            ),)
                          )