CM Gehlot appears in court in defamation case