add function for setting PDO Attributes