changed sqlite to ruby only