PLT with sqlite database