fixed issue with get(), cursors.toArray(), and added event listeners