def getNoAlternatives(uid):
    # If pipelineFlags exists then we have started alternatives, and so have
    # already scheduled the query. No need to reschedule unless the query fails.
    # TODO: If the query fails, then remove the pipelineFlags so that we will
    # reschedule.
    query = {'user_id':uid, 'type':'move', 'pipelineFlags': {'$exists': False}}
    return get_trip_db().find(query)