fn serialize_params(params: &Params) -> Vec<Option<String>>
Helper function to serialize statement parameters for logging.