Return DIFF record from mkdir and then use the diff to update the database