Added hostIdentifier to info output

Small change that adds the the hostIdentifier in the output to the info log when running queries.

Also, wraps the `DBHandle::getInstance()` call in a try block, an cause the `getHostIdentifier()` function to throw an error if it cant access the DB.
nit, but can you make this `const std::exception& e`?