def add_photo_to_conspect(photo: PhotoDB, conspect: ConspectDB):
    photo.id_conspect = conspect.id
    db.session.commit()
def remove_from_conspect(photo: PhotoDB):
    photo.id_conspect = None
    db.session.commit()