Use a graph instead of mysql