First iteration mapred write to db
Write to db