Better graph db management and improved errors