Added tests, documentation, pragma for Entity deletion and search