wrap PDOException for exec() method and cleanup unnecessary try catch blocks