Core/Commands: Fixed wrong field types used in db queries for pinfo command and output alive state if target is offline