backup and insert docs into mongo and sqlite3