Write new records to the mongo database.

On the /api/v1/records, a PUT command will cause the record to be
written to the mongo database.