Added DB query for HostID; Implemented HTTP request for imaging task