replace mongodb with sqlite database