Iterate over keys and indexes together

@db.each { |key, value|
...
}