cfm: Write remote MPIDs to the database.