DelordDelMisc: use model instead of plain sql
IncidentType: use model instead of plain sql
PreBprog next_id fix
DEV-24628
use models instead of  plain sql + new urls
Merge branch 'master' into releases