Update slides.py : Checking sqlalchemy Integrity