General purpose graph database