async checkUsername (username) {
    const result = (await db('users').where('username', username).count('*'))[0]['count(*)']

    return result === 0
  }
Check username availability

@param {String} username username