ido: Clear config tables on startup

fixes #4502
ido: replace hardcoded objecttype_id with enum