NTFY-22 Moved the getHost utility function from database.js