Use wfGetDB(DB_SLAVE) when appropriate. Changed deletion summary autogeneration to...