String storing database in Ruby