Moved graph_invariants to a proper sql file