code: def authenticate_key(api_key):
      
      user_model = Query()
      user = db.search(user_model.api_key == api_key)[0]
      if user:
          return user['username']
      return False
docs: Authenticate an API key against our database
      :param api_key:
      :return: authenticated username