move from mongo to sqlite. add quote support.