async createVideo (info, fileIds, version = 1) {
    if (info.company && info.id) info.JAVID = info.company + '-' + info.id

    const metadataId = await metadata.getMetadataId(info.JAVID, version, info.JAVMetadata)
    logger.debug('Metadata id', metadataId)

    if (!metadataId || metadata === 0) {
      return
    }

    if (info.JAVMetadata) {
      delete info.JAVMetadata
      info.metadata = info.videoMetadata
      delete info.videoMetadata
    }

    const dbData = {
      videoMetadata: JSON.stringify(info),
      isHiden: 0,
      videoFileId: fileIds.videoId,
      metadataId: metadataId,
      infoFileId: fileIds.metaId,
      updateTime: (new Date()).getTime(),
      version
    }

    if (version === 1) dbData.storyboardFileIdSet = JSON.stringify(fileIds.storyboardId)
    else dbData.storyboardFileIdSet = '[]'

    const result = await db('videos').insert(dbData).select('id')

    logger.info(`[${info.JAVID}] Video created, id`, result[0])
    return result[0]
  }
Create video record

@param {Object} info JAV info
@param {Object} fileIds File ids
@param {Int} fileIds.metaId info.js file id
@param {Int} fileIds.videoId video.mp4 file id
@param {Int} fileIds[storyboardId].id storyboard file id

@returns {Int} Video id