Move BTree pump operations into DB class