def METHOD_NAME(db):
    """Test Type 3: Multiple database queries"""
    response.headers['Date'] = formatdate(timeval=None, localtime=False, usegmt=True)
    num_queries = request.query.get('queries', 1, type=int)
    if num_queries < 1:
        num_queries = 1
    if num_queries > 500:
        num_queries = 500
    rp = partial(randint, 1, 10000)
    get = db.query(World).get
    worlds = [get(rp()).serialize() for _ in xrange(num_queries)]
    response.content_type = 'application/json'
    return json.dumps(worlds)