Taking care of 'type_downtime' value for existing downtime settings.
(set `type_downtime` to "disable_agents", if `only_alerts` is 0)
Fixed db_scheme build and version in migration from 4.X to 5.0