solving sqlite gem bug