Do-while not really working in ruby
Local databases