Accessing data base for graph data

Trying to access database for graph data....failed horribly