Refactored SQL execution and parameter passing methods into extension methods.
Added existence check to LogCollection to avoid unnecessary tasks and SQL commands.
Added SequenceNumber to disambiguate exception instances with identical LoggedTimeUTC values.
Cleaned up parameter names.