fixed sqlite problem