mdb_cursor_put params should be refs?