Update GraphDatabase.js

Implement a _clone() private method to prevent direct modification of the database objects.
Updated _parseEntities(), .read(), .update() methods to utilize the object cloning method.