adapt put method from BdbStorageEngine.java