Changed Cursor to use rdb instead of wdb