Changing mongodb to sqlite3