added gen_graph, added methods to SQLOps