Update fix catching sqlalchemy exception, multiple exceptions