.......PS. [ZBX-8514] adjusted sql query to account for host status when adding discovered host to hosts table