diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb
index <HASH>..<HASH> 100644
--- a/lib/sbdb/db.rb
+++ b/lib/sbdb/db.rb
@@ -88,6 +88,14 @@ module SBDB
 		def self.new file, name = nil, *p, &e
 			super file, name, RECNO, *p, &e
 		end
+
+		def [] k
+			super [k].pack('I')
+		end
+
+		def []= k, v
+			super [k].pack('I'), v
+		end
 	end
 	Array = Recno
 
@@ -95,5 +103,13 @@ module SBDB
 		def self.new file, name = nil, *p, &e
 			super file, name, QUEUE, *p, &e
 		end
+
+		def [] k
+			super [k].pack('I')
+		end
+
+		def []= k, v
+			super [k].pack('I'), v
+		end
 	end
 end
DB: Recno/Queue-support