db.rb better populate, uses different items
barget.rb: user function now sorts by item type