Using sqlite instead of mongodb