def download(): return send_from_directory(directory=current_app.root_path, filename='rules.db', as_attachment=True)