def set_project_pid(project, old_pid, new_pid):
    """ Project's PID was changed. """
    for datastore in _get_datastores():
        datastore.save_project(project)
        datastore.set_project_pid(project, old_pid, new_pid)