OOP abstraction over versioned graph database