Make mongo work.
Write to db.