changed db from sql to mongo