Writes users, businesses to mongodb