async getMetaId (type, name, photoURL) {
    try {
      const result = await db(`${type}`).where('name', name).first()
      if (result) {
        logger.debug(`[${type}] record for`, name, result)
        return result.id
      } else {
        logger.debug(`[${type}] record for`, name, 'not found, create one')

        const data = {
          name,
          updateTime: (new Date()).getTime()
        }

        if (photoURL) data.photoURL = photoURL

        let id = await db(`${type}`).insert(data).select('id')
        id = id[0]

        logger.debug(`[${type}] record for`, name, 'created,', id)
        return id
      }
    } catch (error) {
      logger.error('Error while creating a record', error)
      throw error
    }
  }
Get or create multiple types of metas' id

@param {String} type value can be: tags, stars, series
@param {String} name name
@param {String=} photoURL photo URL

@returns {Int} id