code: def load_keys(database, parameters):
      
      keys = []
      with database.snapshot() as snapshot:
          results = snapshot.execute_sql(
              'SELECT u.id FROM %s u' % parameters['table'])
  
      for row in results:
          keys.append(row[0])
  
      return keys
docs: Loads keys from database.