Reshape flask example app. Use filter_by instead of filter on disconnect code