Added ability to get the graph file from the database.